import request from '@/utils/request'

export default{
  getList(searchModel){
    return request({
      url: '/sys/admin/notice/list',
      method: 'post',
      data:searchModel
    });
  },

  save(data){
    return request({
      url: '/sys/admin/notice/save',
      method: 'post',
      data: data
    });
  },

  deleteById(id){
    return request({
      url: `/sys/admin/notice/${id}`,
      method: 'delete',
    });
  },
}
